USE [BMIG_Mensual_POST_CADENA]
GO

/****** Object:  StoredProcedure [dbo].[WASP_M0015_CREATE_TABLE]    Script Date: 11/23/2011 17:45:45 ******/
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[WASP_M0015_CREATE_TABLE]') AND type in (N'P', N'PC'))
DROP PROCEDURE [dbo].[WASP_M0015_CREATE_TABLE]
GO

USE [BMIG_Mensual_POST_CADENA]
GO

/****** Object:  StoredProcedure [dbo].[WASP_M0015_CREATE_TABLE]    Script Date: 11/23/2011 17:45:45 ******/
SET ANSI_NULLS ON
GO

SET QUOTED_IDENTIFIER ON
GO


CREATE PROCEDURE [dbo].[WASP_M0015_CREATE_TABLE]
AS
BEGIN
	if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tipo_afi]') and OBJECTPROPERTY(id, N'IsUserTable') = 1)
	drop table  dbo.tipo_afi

	CREATE TABLE [dbo].[tipo_afi] (
		[CRTRAPEN] CHAR(1) NOT NULL ,
		[rut] CHAR(10) not NULL 
	) ON [PRIMARY]
END

GO

